package exam;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main2 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        String[] pies = str.split(" ");
        int aa = Integer.parseInt(pies[0]);
        int bb = Integer.parseInt(pies[1]);

        long result = gongbeishu(aa, bb);
        System.out.println(result);
    }

    private static long gongbeishu(int aa, int bb) {
        long area = (long) aa * bb;
        int gcd = maxGcd(aa, bb);
        return area / gcd;
    }

    private static int maxGcd(int aa, int bb) {
        int mixNum = Math.min(aa, bb);
        for (int i = 2; i <= mixNum; i ++) {
            if (aa % i == 0 && bb % i == 0) {
                return i * maxGcd(aa / i, bb / i);
            }
        }
        return 1;
    }

}
